//
//  WebTarget.m
//  iCodeMac
//
//  Created by Andrew Barry on 27/04/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "WebTarget.h"
#import "JavascriptProject.h"

static WebTarget *gSharedInstance;

@implementation WebTarget
+(id<CodeTarget>) sharedInstance {
	if (!gSharedInstance)
		gSharedInstance = [WebTarget new];
	return gSharedInstance;
}

-(void) run: (JavascriptProject *) project {
	if (![project buildApplicationForRelease: false])
		return;

	[[NSWorkspace sharedWorkspace] openFile: [project buildPath]];
}

@end
